package com.huike.report.service;

import com.huike.common.core.page.TableDataInfo;
import com.huike.contract.domain.TbContract;
import com.huike.report.domain.dto.IndexDto;
import com.huike.report.domain.vo.*;

import java.text.ParseException;
import java.time.LocalDate;
import java.util.List;
import java.util.Map;

public interface IReportService {
    /**
     * 漏斗图
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    VulnerabilityMapVo getVulnerabilityMap(String beginCreateTime, String endCreateTime);

    /**
     * 客户统计时间列表
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    LineChartVO selectAllClient(String beginCreateTime, String endCreateTime) throws ParseException;
//
    /**
     * 客户分页查询
     * @param contract
     * @return
     */
    List<TbContract> contractStatisticsList(TbContract contract);


    IndexVo index(IndexDto indexDto);

    List<IndexChangeVo> indexClues(IndexDto indexDto);

    List<IndexChangeVo> indexBusiness(IndexDto indexDto);

    LineChartVO NewReport(String beginCreateTime, String endCreateTime) throws ParseException, ParseException;

    TableDataInfo CountSelect(Integer pageNum, Integer pageSize, String beginCreateTime, String endCreateTime);
    /**
     * 渠道统计饼图
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    List<ChanelStatisticsVo> chanelStatistics(String beginCreateTime, String endCreateTime);

    /**
     * 活动统计饼图
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    List<ActivityStatisticsListVo> activityStatistics(String beginCreateTime, String endCreateTime);

    ActivityStatisticsPageVo activityStatisticsList(String beginCreateTime, String endCreateTime, String code, String name, Integer pageNum, Integer pageSize);
    /**
     * 学科客户分布
     * @param beginCreateTime
     * @param endCreateTime
     * @return
     */
    List<Map<String, Object>> subject(String beginCreateTime, String endCreateTime);


    /**
     * 销售统计时间列表
     * @param beginCreateTime
     * @param endTime
     * @return
     * @throws ParseException
     */
    LineChartVO saleStatistics(String beginCreateTime, String endTime) throws ParseException;
    /**
     * 销售统计报表--归属部门
     * @param pageNum
     * @param pageSize
     * @param begin
     * @param end
     * @return
     */
    TableDataInfo deptStatisticsList(Integer pageNum, Integer pageSize, LocalDate begin, LocalDate end);
    /**
     * 销售统计报表--归属人
     * @param pageNum
     * @param pageSize
     * @param begin
     * @param end
     * @return
     */
    TableDataInfo ownerShipStatisticsList(Integer pageNum, Integer pageSize, LocalDate begin, LocalDate end);
    /**
     * 销售统计报表--归属渠道
     * @param pageNum
     * @param pageSize
     * @param begin
     * @param end
     * @return
     */
    TableDataInfo channelStatisticsList(Integer pageNum, Integer pageSize, LocalDate begin, LocalDate end);
}
